package com.edu.v2.compile.parser;

import com.edu.compile.Parser;
import org.springframework.stereotype.Component;

/**
 * @author zhanshen zhanshen.xu@tuya.com
 * @class StringParse
 * @since 2021/7/30
 */
@Component
public class StringParser implements Parser<String, String> {

    @Override
    public String parse(String value) {

        if (value == null) {
            return null;
        }

        return "'" + value + "'";
    }
}
